ostree-prepare-root: Fix /etc bind mount
authorJonathan Lebon <jonathan@jlebon.com>
Fri, 28 Aug 2020 16:35:28 +0000 (12:35 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Fri, 28 Aug 2020 18:16:29 +0000 (14:16 -0400)
commitb3c7b059eaee3123d5b2523065726e866c533fe9
tree978c9b5e9171ab1d941d7c84faa0301820c808ab
parent22b3883aa477237d619269c6b8995df6e2a82e67
ostree-prepare-root: Fix /etc bind mount

We were bind-mounting the initramfs' `/etc` (to itself) instead of the
target deployment `/etc` (to itself). Since we're already `chdir`'ed
into it, we can just drop the leading slash.
src/switchroot/ostree-prepare-root.c